package com.jihui.user.starter;

import com.jihui.feign.UserManagerStart;
import com.jihui.user.model.JihuiUser;
import org.springframework.stereotype.Component;

@Component
public class UserHystrix implements UserManagerStart{

    public Integer add(Integer a, Integer b) {
        return 100;
    }


    public JihuiUser findById(Long userId) {
        JihuiUser jihuiUser = new JihuiUser();
        jihuiUser.setUsername("adfasdfasdfas");
        return jihuiUser;
    }


    public JihuiUser login(String userName, String password, String ip) throws Exception {
        return null;
    }
}